{
  "properties" : { },
  "id" : "b27f16771d2f46c4a069e2f9515ff9b8",
  "script" : null,
  "groupId" : "4c0c509172534572bbe1809900aeafa9",
  "name" : "绑定mib",
  "createTime" : 1727071008198,
  "updateTime" : 1726035090664,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "modelMidRelation/saveBatch",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n    \"deviceModelId\": \"1461584734570151938\",\r\n    \"midIdList\": [\r\n        \"1655814210014179371\"\r\n    ]\r\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": []\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : null,
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "status",
      "value" : "200",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "message",
      "value" : "success",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "data",
      "value" : "",
      "description" : "",
      "required" : false,
      "dataType" : "Array",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  }
}
================================
import  "@/util/getSaveList" as getSaveList;
 List  midIdList = body.midIdList;
List  list = new ArrayList();
        getSaveList(list, body.midIdList, body.deviceModelId);
        //  之前绑定了相同的mib id，就不再绑定了
        // List<String> collect = list(new LambdaQueryWrapper<ModelMidRelation>().eq(!StringUtils.isNullOrEmpty(body.getDeviceModelId())
        //         , ModelMidRelation::getDeviceModelId, body.getDeviceModelId())).stream()
        //         .map(ModelMidRelation::getMibId).collect(Collectors.toList());
        // List<ModelMidRelation> toSave = list.stream().distinct().filter(modelMidRelation -> !collect.contains(modelMidRelation.getMibId())).collect(Collectors.toList());
        // boolean b = saveBatch(toSave);
        return list;